/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package combinaciones;


/**
 *
 * @author Vivi
 */
public class EntidadFactory implements IEntidadFactoryMethod {

    @Override
    public Entidad crearEntidad(String tipo) {
            if(tipo == "Bomberos")       return new Bomberos();
            if(tipo == "Policia")        return new Policia();
            if(tipo == "Hospital")       return new Hospital();
        return null;
    }
    

}
